package com.hoo.mapper.account;

import java.util.List;
import java.util.Map;

import com.hoo.entity.account.District;
import com.hoo.entity.account.SearchVisitorResult;
import com.hoo.entity.account.Visitor;
import com.hoo.form.account.SearchForm;
import com.hoo.form.account.VisitorForm;

public interface VisitorMapper extends SqlMapper {
	
	public int insertVisitor(Visitor visitor);
	
	public List<Visitor> getVisitor(VisitorForm form);

	public List<Visitor> getVisitorByProviceCode(int proviceCode);
	
	public List<Map<String, Object>> getVisitorGroupMapYear(int year);
	
	public List<SearchVisitorResult> getVisitorInEveProvice();
	
	public List<SearchVisitorResult> getVisitorInEveCity(SearchForm form);

	public List<District> getAllProvices();
	
	public District getDistrictByCityCode(int cityCode);

	public List<SearchVisitorResult> getVisitorInThirtyMin();
	
	public List<SearchVisitorResult> getVisitorInDay(SearchForm form);

	public List<SearchVisitorResult> statisticsVisitorInThirtyMin();
	
	public List<Visitor> getVisitorList(VisitorForm form);
	
	public int getVisitorCount(VisitorForm form);
	
	public List<SearchVisitorResult> getRecentVisitor(SearchForm form);
	
	public SearchVisitorResult statisticsPercent(SearchForm form);
	
	public List<SearchVisitorResult> getVisitorInfoInDay(SearchForm form);

	public List<SearchVisitorResult> getVisitorInfoRecent(SearchForm form);
	
	public List<SearchVisitorResult> getVisitorInEveProviceBetweenTime(SearchForm form);
	
	public List<SearchVisitorResult> statisticsEveProviceVisitorInf(SearchForm form);

	public List<Map<String, Object>> getVisitorGroupMapDay(SearchForm form);

	public List<SearchVisitorResult> statisticsEveNationVisitor(SearchForm form);

	public String getVisitorLatelyInvoteTicketTimeByIdCard(String string);
	
}
